package 笔试记录.M9day21海康;

public class Main {
    public static void main(String[] args) {
        int num = solve(1,11);
        System.out.println(num);
    }

    public static int solve(int res,int day){
        if(day == 1){
            return res;
        }
        return solve(2 * res + 2,--day);
    }
}
